package com.keyinong.caizhengting.activity;

import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageButton;
import android.widget.TextView;

import com.keyinong.caizhengting.R;

/**
 * @author：郑谦
 * @时间：2017-4-10 下午4:02:27
 * @类名：PaysuccessActivity.java
 * @功能: 支付成功
 */

public class PaysuccessActivity extends Activity {

    private ImageButton ib_fanhui;
    private TextView tv_success;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            getWindow().addFlags(
                    WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
//			getWindow().addFlags(
//					WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
        }
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_paysuccess);
        initRes();
    }

    private void initRes() {
        ib_fanhui = (ImageButton) findViewById(R.id.ib_fanhui);
        tv_success = (TextView) findViewById(R.id.tv_success);
        String xiaofei = getIntent().getStringExtra("xiaofei");
        tv_success.setText("支付成功，消费" + xiaofei + "元");
        ib_fanhui.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                finish();
            }
        });


    }

}
